package com.bf.electroplating.pojo.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 企业设备关联关系表
 * </p>
 *
 * @author gzd
 * @since 2025-01-15
 */
@Getter
@Setter
@TableName("company_device_relation")
@Schema(description = "企业设备关联关系表")
public class CompanyDeviceRelation implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "关联关系ID")
    @TableId("ID")
    private String id;

    @Schema(description = "生产设备ID")
    @TableField("PRODUCTION_DEVICE_ID")
    private String productionDeviceId;

    @Schema(description = "治理设备ID")
    @TableField("GOVERNANCE_DEVICE_ID")
    private String governanceDeviceId;

    @Schema(description = "主备设备类型（1：主设备，2：备用设备）")
    @TableField("HOST_STANDBY_TYPE")
    private Integer hostStandbyType;

    @Schema(description = "关联类型（01：生产-治理，02：其他）")
    @TableField("RELATION_TYPE")
    private String relationType;

    @Schema(description = "所属企业ID")
    @TableField("COMPANY_ID")
    private String companyId;

    @Schema(description = "企业名称")
    @TableField("COMPANY_NAME")
    private String companyName;

    @Schema(description = "创建人")
    @TableField("CREATE_BY")
    private String createBy;

    @Schema(description = "创建时间")
    @TableField("CREATE_TIME")
    private LocalDateTime createTime;

    @Schema(description = "修改人")
    @TableField("UPDATE_BY")
    private String updateBy;

    @Schema(description = "修改时间")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    @Schema(description = "逻辑删除标志（0：未删除，1：已删除）")
    @TableField("DEL_FLAG")
    private String delFlag;

    @Schema(description = "园区id")
    private String parkId;
}
